# Contributor: Jakob Meier <comcloudway@ccw.icu>
# Maintainer: Jakob Meier <comcloudway@ccw.icu>
pkgname=perl-musicbrainz-discid
pkgver=0.06
pkgrel=0
pkgdesc="Perl Module: Perl interface for the MusicBrainz libdiscid library"
url="https://metacpan.org/release/MusicBrainz-DiscID"
arch="all"
license="MIT"
makedepends="perl-dev libdiscid-dev"
subpackages="$pkgname-doc"
source="https://github.com/njh/perl-musicbrainz-discid/archive/$pkgver/perl-musicbrainz-discid-$pkgver.tar.gz"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="
66d9b7e2e45a0a5f87fdbe0673f6886aa0818d43ba51f46973b02e8f870635a7421b3b0a7bd0fa1d6f862256e9a36340c87af3a43a5e71c2df07dcaa04bcdd87  perl-musicbrainz-discid-0.06.tar.gz
"
